
<script type="text/javascript">
RED.nodes.registerType('xiaoai-tts-configurator', {
  category: 'config',
  label () {
    return this.name || '小爱默认配置'
  },
  defaults: {
    name: {
      value: ''
    }
  },
  credentials: {
    username: {type:"text",required:true},
    password: {type: "password",required:true},
  }
})
</script>
  <script type="text/x-red" data-template-name="xiaoai-tts-configurator">
    <div class="form-row">
      <label for="node-config-input-name"><i class="icon-tag"></i>名称</label>
      <input type="text" id="node-config-input-name" placeholder="小爱默认配置">
    </div>
    <div class="form-row">
      <label for="node-config-input-username"><i></i>登录名</label>
      <input type="text" id="node-config-input-username" placeholder="小米账号">
    </div>
    <div class="form-row">
      <label for="node-config-input-password"><i></i>密码</label>
      <input type="password" id="node-config-input-password" placeholder="小米账号密码">
    </div>
    <div class="form-row">
      <label style="width: 100%;text-align: right;padding-right: 34px;box-sizing: border-box;" >
        <a href="https://bbs.iobroker.cn/thread-195-1-1.html" target="_blank">手摸手图文教程 (ioBroker中国|智能家居)提供</a>
      </label>
    </div>
  </script>
  <script type="text/x-red" data-help-name="xiaoai-tts-configurator">
    <p>小爱配置节点</p>
    <p>和iobroker开发者一起聊天，快来加入吧</p>
    <img src="https://i.loli.net/2018/12/28/5c25b8bf1e78d.jpg"/>
  </script>